package de.szut.entity;

import de.szut.util.OperatingSystemName;

import java.io.Serializable;

/**
 * Created by dzebcuks on 23.08.13.
 */
public class OperatingSystem implements Serializable {

    private OperatingSystemName operatingSystemName;

    private User users;

    private Integer passedIntervals = new Integer(0);

    public OperatingSystem(OperatingSystemName name, User users) {
        this.users = users;
        this.operatingSystemName = name;
    }

    public void increasePassedIntervals(){
        this.passedIntervals++;
    }

    public Integer getPassedIntervals() {
        return passedIntervals;
    }

    public void resetPassedIntervals(){
        this.passedIntervals = new Integer(0);
    }

    public OperatingSystemName getOperatingSystemName() {
        return operatingSystemName;
    }

    public void setOperatingSystemName(OperatingSystemName operatingSystemName) {
        this.operatingSystemName = operatingSystemName;
    }

    public User getUsers() {
        return users;
    }

    public void User(User users) {
        this.users = users;
    }
}
